#pragma once

#include <QtWidgets/QWidget>
#include <QtGui/QColor>
#include "multiflowlayout_global.h"
namespace MultiFlow {
	class  CuttingLine : public QWidget
	{
		Q_OBJECT

	public:
		CuttingLine(uint lineWeight, const QColor& color,QWidget* parent = 0);
		virtual ~CuttingLine();
		void setPenColor(const QColor& color);
	protected:
		virtual void paintEvent(QPaintEvent* event);
	private:
		QColor m_penColor;
	};
	class MULTIFLOWLAYOUT_EXPORT CuttingLineFactory {
	public:
		CuttingLineFactory() {

		}
		CuttingLine* operator() (int lineWeight, const QColor& color) {
			return new CuttingLine(lineWeight,color);
		}
	};
}